namespace CSharpPro._0923;

public class Demo2
{
    public static void countprice()
    {
        double a = 8800;
        int month=int.Parse(Console.ReadLine());
        string way=Console.ReadLine();
        if (month >= 5 && month <= 10)
        {
            if (way == "航班出行")
            {
                a = a * 0.9;
            }
            else
            {
                a = a * 0.75;
            }
        }
        else
        {
            if (way == "航班出行")
            {
                a = a * 0.6;
            }
            else
            {
                a = a * 0.3;
            }
        }
        Console.WriteLine(a);
    }
}